gen mstat = 1 if parent_fil_stat == 1 | parent_fil_stat == 4  // "single or head of household (unmarried)"
replace mstat = 2 if parent_fil_stat == 2 | parent_fil_stat == 5  // "joint(married)" **RIGHT SPOT FOR WIDOWER?
replace mstat = 6 if parent_fil_stat == 3 // "separate(married)"


foreach x in parent_have_1040 parent_fil_stat mstat parent_mafid {
gen L`x' = l.`x'
replace L`x' = l2.`x' if year==1969+2 | year==1974+2 | year==1979+2 | year==1984+2 | year==1989+2
}
